package com.smartstate.dataManagement.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartstate.dataManagement.entity.DeviceCarePlanEntity;
import com.smartstate.dataManagement.entity.EmployeeSchedu;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScheduMapper extends BaseMapper<EmployeeSchedu> {

    List<EmployeeSchedu>  getListByName(String name);

    int addEmploySchedu(EmployeeSchedu employeeSchedu);

    @Delete("delete   from  employee_schedu  where  id=#{id}")
    int deleteById(@Param("id") String id);

    int batchDelByIds(List<String> ids);

    int updateByID(EmployeeSchedu  employeeSchedu);

}
